package com.TeacherInfoServer.common.service;

import com.TeacherInfoServer.common.Result;
import com.TeacherInfoServer.pojo.DTO.SearchDTO.PostDoctoralSearchDTO;
import com.TeacherInfoServer.pojo.entity.PostDoctoral;
import com.TeacherInfoServer.pojo.DTO.AddPostDoctoralDTO;
import com.TeacherInfoServer.pojo.DTO.UpdatePostDoctoralDTO;
import com.TeacherInfoServer.pojo.vo.PostDoctoralListVo;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.Map;

public interface PostDoctoralService extends IService<PostDoctoral> {
    Result<Map<String,Integer>> addOne(AddPostDoctoralDTO addPostDoctoralForm);
    Result<PostDoctoralListVo> getList(Long pageNumber, Long pageSize);

    Map<String,Object> searchPostDoctoralList(PostDoctoralSearchDTO postDoctoralSearchDTO);

    void export(HttpServletResponse response, @RequestParam String fileName) throws IOException;
    Result<Map<String, Integer>> deleteBatch(String[] teacherIds);
    Result<Map<String,Integer>> updateOne(UpdatePostDoctoralDTO updatePostDoctoralForm);
}
